Literals described how string literals may be included in a script by enclosing them in single quotes. VectorScript also allows string values to be stored as data during script execution, and supports three data types for representing this data within scripts:
STRING,
CHAR, and
CHAR arrays. This section will discuss the first two types;
CHAR arrays will be discussed in detail in
Extended String Support with CHAR Arrays.
STRING values are used to store and manipulate textual data within scripts. A variable of type
STRING will store up to 255 characters of textual data, and
STRING data values will support any valid ASCII character. Data values of type
STRING are also compatible with string and character literals.
CHAR data values store a single ASCII character, and they are a distinct type from the
STRING data type.
CHAR values can be used to obtain and convert single characters from
STRING values, and they are often used to define special characters for use in a script.
STRING and
CHAR values are compatible types, and values of these types may be assigned and compared directly.